#include "term.hpp"
#include <iostream>

double Term::pp = 0;
double Term::pc = 0;
double Term::pf = 0;
double Term::ps = 0;

Term::Term(){
	ppt=0;
	pct=0;
	pft=0;
	pst=0;
	p=0;
	c=0;
	f=0;
	s=0;
	added=false;
}

void Term::update(int cp,int cc,int cf,int cs){
	ppt=((double)(p+1))/cp;
	pct=((double)(c+1))/cc;
	pft=((double)(f+1))/cf;
	pst=((double)(s+1))/cs;
	/*
	std::cout << "p = " << p << std::endl;
	std::cout << "c = " << c << std::endl;
	std::cout << "f = " << f << std::endl;
	std::cout << "s = " << s << std::endl;
	std::cout << "pp = " << ppt << std::endl;
	std::cout << "pc = " << pct << std::endl;
	std::cout << "pf = " << pft << std::endl;
	std::cout << "ps = " << pst << std::endl;
	std::cout << "cp = " << cp << std::endl;
	std::cout << "cc = " << cc << std::endl;
	std::cout << "cf = " << cf << std::endl;
	std::cout << "cs = " << cs << std::endl << std::endl;
	*/
}